package com.example.botany_api.bean;

/**
 * @Author 漫画忧作
 * @Date 2022/9/24 10:50
 * @Version 1.0
 */
//用户实体类
public class User {
    private int id;
    private String name;
    private String pass;
    private int type;
    private String gender;
    private String birth;
    private String address;
    private String mail;

    private String head_img;
    private int state;
    public User() {
    }

    public User(String name, String pass, int type, String gender, String birth, String address, String mail, String head_img, int state) {
        this.name = name;
        this.pass = pass;
        this.type = type;
        this.gender = gender;
        this.birth = birth;
        this.address = address;
        this.mail = mail;
        this.head_img = head_img;
        this.state = state;
    }

    public User(int id, String name, String pass, int type, String gender, String birth, String address, String mail, String head_img, int state) {
        this.id = id;
        this.name = name;
        this.pass = pass;
        this.type = type;
        this.gender = gender;
        this.birth = birth;
        this.address = address;
        this.mail = mail;
        this.head_img = head_img;
        this.state = state;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public String getHead_img() {
        return head_img;
    }

    public void setHead_img(String head_img) {
        this.head_img = head_img;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pass='" + pass + '\'' +
                ", type=" + type +
                ", gender='" + gender + '\'' +
                ", birth='" + birth + '\'' +
                ", address='" + address + '\'' +
                ", mail='" + mail + '\'' +
                ", head_img='" + head_img + '\'' +
                ", state=" + state +
                '}';
    }
}
